﻿





using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using ProtoBuf;


namespace Serialization
{
    /// <summary>
    /// A serializable highscore entry used for the highscores.
    /// </summary>
[ProtoContract]
    public class HighscoreEntry 
    {
        [ProtoMember(1)]
        public Account account
        {
            get;
            set;
        }

        [ProtoMember(2)]
        public int score
        {
            get;
            set;
        }

        public HighscoreEntry(Account account, int score)
        {
            this.account = account;
            this.score = score;
        }

        //needed for protobuf-serialization
        private HighscoreEntry()
        {
        }

    }
}
